#ifndef BILATERAL_NORMAL_FILTER_H
#define BILATERAL_NORMAL_FILTER_H
#include "gemo.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>


class bilateral_normal_filter
{
public:
    bilateral_normal_filter();
    bilateral_normal_filter(const MPolygon *poly);
    ~bilateral_normal_filter();

    bool NormalUpdate(double varv, double varn, int iter);
    bool VertexUpdate(int iter);

public:
    int IteNormalUpdate;
    int IteVertexUpdate;
    double Variance_of_Centroids;
    double Variance_of_Normals;
    MPolygon* polygon;
};

#endif // BILATERAL_NORMAL_H
